Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Thu, 26 May 2022 16:47:05 +0000 (17:47 +0100)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Thu, 26 May 2022 16:47:05 +0000 (17:47 +0100)
commit742daee831d1ce29ec5cbdcb52fe167f965a5113
tree3688ff9074721ae11368e1cfdcc0c3c7ab2d864e
parent268d9cedb07c13e3b8123a28273918e5ec0bb8eb
Reproducible builds requires that the build time stamp is not

recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.

Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
fpcsrc/compiler/globals.pas